Running the Amazon S3 Personal File Store Sample

This sample demonstrates interaction with a Token Vending Machine where a username/password combination is required. The user is expected to register with the App first by connecting to an external website. In this sample the website is a specific page on the Token Vending Machine. After registering, the user would be able to start the App by logging in.

It is assumed that the Token Vending Machine specific to this sample application is already running.

  1. Open the AmazonS3PersonalFileStore-iOS/S3PersonalFileStore.xcodeproj project file in Xcode.
  2. Configure the sample with your Token Vending Machine settings:
    1. Open the Constants.h file.
    2. Modify the TOKEN_VENDING_MACHINE_URL with the DNS domain name where your Token Vending Machine is running (ex: tvm.elasticbeanstalk.com).
    3. Modify the APP_NAME with the name you configured your Token Vending Machine with (ex: MyMobileAppName).
    4. Modify the USE_SSL to YES or NO based on whether your Token Vending Machine is running SSL or not.
    5. Modify the BUCKET_NAME to the Amazon S3 Bucket you want to use, this bucket should have been previously created and should match the bucket name you used in the token vending machine policies.
  3. The Amazon S3 Personal File Store uses the AWS SDK for iOS so it needs to be included into the project as follows:
    1. Download and unzip the AWS SDK for iOS.
    2. In Xcode, on the File menu, click Open, then double-click your project.
    3. Control-click Frameworks Group, then click Add files to .
    4. In Finder, navigate to AWSiOSSDK.framework, then click Add.
      • The AWSiOSSDK.framework can be found in the unzipped AWS SDK for iOS directory.
  4. Build and Run the project.